% this file needs the adjustbox package with [Export] option for alignment of logos

\newcommand{\wahydcolour}{\color[RGB]{0,83,123}}
\newcommand{\headfootspec}{%
	\wahydcolour
	\upshape
	\raggedright
	\sffamily
}

\addtokomafont{headsepline}{\wahydcolour}
\addtokomafont{footsepline}{\wahydcolour}
\setkomafont{pagehead}{\headfootspec\huge}
\setkomafont{pagefoot}{\headfootspec\small}
\setkomafont{pagenumber}{\headfootspec}

\newlength{\minipicheight}
\setlength{\minipicheight}{18mm}

\newcommand{\wahydfooter}[1]{%
	\vspace{0.5em}
	% height for university and chair logo
	\includegraphics[height=\minipicheight, valign=m]{wahyd-logo-newblue.pdf}
	\hspace{3mm}
	\begin{minipage}[c]{.64\textwidth}#1\end{minipage}%
	\hfill
	\includegraphics[height=\minipicheight, valign=m]{tub_logo.pdf}
}


\newlength{\myrulewidth}
\setlength{\myrulewidth}{3\arrayrulewidth}

\defpagestyle{titleslide}
{(0pt,0pt){}{}{}(0pt,0pt)}
{
	(\textwidth, \myrulewidth)
	{}{}{\wahydfooter{\hms{} \doctitle}}
	(0pt,0pt)
}



\newcommand{\slideCaption}{MyCaption}

\defpagestyle{slidestyle}{
	(0pt,0pt)
	{}{}{%
		\adjustbox{max width=\textwidth}{\slideCaption}%
%		\slideCaption%
	}
	(\textwidth, \myrulewidth)
}{
	(\textwidth, \myrulewidth)
	{}{}{%
		{}{}{\wahydfooter{\hms{} \doctitle\hfill\pagemark}}
	}
	(0pt,0pt)
}


% no indent for new paragraphs
\setlength{\parindent}{0pt}


\definecolor{mintedBg}{gray}{0.9}
\definecolor{mintedFrame}{gray}{0.9}

\setminted{
frame=single,
framesep=2mm,
rulecolor=mintedFrame,
baselinestretch=1.2,
bgcolor=mintedBg,
fontsize=\footnotesize
}
